package models

type ProjectModel struct {
	ProjectName string `json:"project_name" gorm:"column:project_name;primary_key"`
	GitPath     string `json:"git_path" gorm:"column:git_path"`
	CreateTime  string `json:"create_time" gorm:"column:create_time"`
}

func NewProjectModel(projectname, gitpath, createTime string) *ProjectModel {
	return &ProjectModel{ProjectName: projectname, GitPath: gitpath, CreateTime: createTime}
}

func (p *ProjectModel) TableName() string {
	return "project"
}
